import request from '@/utils/request'

// 查询设施状态列表
export function listFacilityStatus(query) {
  return request({
    url: '/facilityStatus/facilityStatus/list',
    method: 'get',
    params: query
  })
}

// 查询设施状态详细
export function getFacilityStatus(facilityId) {
  return request({
    url: '/facilityStatus/facilityStatus/' + facilityId,
    method: 'get'
  })
}

// 新增设施状态
export function addFacilityStatus(data) {
  return request({
    url: '/facilityStatus/facilityStatus',
    method: 'post',
    data: data
  })
}

// 修改设施状态
export function updateFacilityStatus(data) {
  return request({
    url: '/facilityStatus/facilityStatus',
    method: 'put',
    data: data
  })
}

// 删除设施状态
export function delFacilityStatus(facilityId) {
  return request({
    url: '/facilityStatus/facilityStatus/' + facilityId,
    method: 'delete'
  })
}
